<?php /* Smarty version Smarty-3.1.13, created on 2013-05-09 16:01:45
         compiled from "views\register.html" */ ?>
<?php /*%%SmartyHeaderCode:178825185cc6858f7b6-20480032%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6141cf95f074befa1d768fac47f2e5313bb6400c' => 
    array (
      0 => 'views\\register.html',
      1 => 1368115302,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '178825185cc6858f7b6-20480032',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5185cc6878a101_31694262',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5185cc6878a101_31694262')) {function content_5185cc6878a101_31694262($_smarty_tpl) {?><div class="s_banner"><img src="images/banner2.png"></div>
<div class="log_down">
<form id="form1" name="form1" action="register.php" method="post">
  <div class="log_form">
    <p>输入您的Yiduo Id 和密码</p>
    <p class="sign_form_i">
      <label>Yiduo Id:</label>
      <input type="text" placeholder="example@gmail.com" class="username" name="usernc" id="usernc">
	  <label class="error"></label>
    </p>
    <p class="sign_form_i">
      <label>登录密码:</label>
      <input type="password" placeholder="6~14位字母或数学" class="psw" name="password" id="password">
	  <label class="error"></label>
    </p>
    <p class="sign_form_i">
      <label>确认密码:</label>
      <input type="password" placeholder="请再输入一次密码" class="psw" name="confirm_password" id="confirm_password">
	  <label class="error"></label>
    </p>
    <p class="sign_form_i">
      <label>公司:</label>
      <input type="text" placeholder="选填" class="psw" name="company">
    </p>
    <p class="sign_form_i sign_form_tip">我已阅读<a href="#">《同意用户协议》</a>
      <input type="checkbox" class="check_df" name="chk_agree" id="chk_agree">
	  <label class="error"></label>
    </p>
    <p class="sign_form_i sign_sub">已有账号？&emsp;<a href="login.php" class="log_st">直接登录</a><a onclick="document.form1.submit()" href="JavaScript:void(0);" class="btn_sign">创建YiDuo ID</a></p>
  </div>
</form>
  <div class="log_info">
    <p class="log_info_t">您可以使用自己的Yiduo Id 来享用Yiduo 服务，如：</p>
    <p>1>知识库访问</p>
    <p>2>积分礼品兑换</p>
    <p>3>客户代表预约</p>
    <p>4>注册成功即送10积分(等同采购价值1000元物品)</p>
	<br/>
	<p style="color:red" id="msg"></p>
  </div>
</div>
 
<script type="text/javascript">
$().ready(function() {
 $("#form1").validate({
	rules: 
	{
		usernc: {
		required: true,
		email: true
		},
		password: {
		required: true,
		minlength: 5
		},
		confirm_password: {
		required: true,
		minlength: 5,
		equalTo: "#password"
		},
		chk_agree:{
		required: true
		}
	},
	messages: 
	{
		usernc: {
		required: "请输入Email地址",
		email: "请输入正确的email地址"
		},
		password: {
		required: "请输入密码",
		minlength: jQuery.format("密码不能小于{0}个字符")
		},
		confirm_password: {
		required: "请输入确认密码",
		minlength: "确认密码不能小于5个字符",
		equalTo: "两次输入密码不一致"
		},
		chk_agree:{
		required: "请确认已阅读协议"
		}
	},
	errorPlacement:function(error, element) { 
		 error.appendTo( element.next() );
	}
  });
});
</script>
 <?php }} ?>